
package Schema::Account;
use base qw/DBIx::Class::Core/;

__PACKAGE__->load_components(qw/InflateColumn::DateTime/);
__PACKAGE__->table('account');
__PACKAGE__->add_columns(qw/accountId name followers followings email url oldest latest count/);
__PACKAGE__->set_primary_key('accountId');
__PACKAGE__->has_many(threads => 'Schema::Thread', 'accountId' , { order_by => \'posted DESC'} );
__PACKAGE__->has_many(replies => 'Schema::Reply', 'accountId' , { order_by => \'posted DESC'} );

1;

